import http from '@/common/http.js'

export default {
	// 获取礼物列表
	giftList: (data) => {
		return http.get({
			url: 'gift/lists',
			data
		})
	},
	// 获取轮播图
	articleBanner: (data) => {
		return http.get({
			url: 'annunciation/bannerList',
			data
		})
	},
	// 推荐征文
	recommendArticle: (data) => {
		return http.get({
			url: 'annunciation/recommend',
			data
		})
	},
	// 获取期数
	annunciationExpect: (data) => {
		return http.get({
			url: 'annunciation/expect',
			data
		})
	},
	// 发布征文
	annunciationPublish: (data) => {
		return http.post({
			url: 'annunciation/publish',
			data
		})
	},
	// 榜单排行榜
	annunciationRanking: (data) => {
		return http.get({
			url: 'annunciation/ranking',
			data
		})
	},
	// 获取征文详情
	annunciationDetail: (data) => {
		return http.get({
			url: 'annunciation/detail',
			data
		})
	},
	// 往期征文
	annunciationList: (data) => {
		return http.get({
			url: 'annunciation/lists',
			data
		})
	},
	// 征文评论列表
	annunciationCommentList: (data) => {
		return http.get({
			url: 'annunciation/commentList',
			data
		})
	},
	// 发布评论
	annunciationComment: (data) => {
		return http.post({
			url: 'annunciation/comment',
			data
		})
	},
	// 点赞/不喜欢
	annunciationAction: (data) => {
		return http.post({
			url: 'annunciation/action',
			data
		})
	},
	// 赠送礼物并支付
	giftGive: (data) => {
		return http.post({
			url: 'gift/give',
			data
		})
	},
	// 赠送礼物微信小程序支付
	giftMpWechatpay: (data) => {
		return http.post({
			url: 'gift/wechatpay',
			data
		})
	},
	// 赠送礼物支付宝支付
	giftAlipay: (data) => {
		return http.post({
			url: 'gift/alipay',
			data
		})
	},
}
